<?php
namespace app\validate;

use think\Validate;

class UserValidate extends Validate {
    protected $rule =[
        'title|标题' => 'require|max:49|min:1',
        'content|内容' => 'require|max:10086'
    ];
    protected $scene=[
        'login' => ['student_id','password'],
        'updatePwd' => ['pwd','oldPwd'],


    ];

}